package com.erp.remote.purchase;

import com.erp.util.AjaxResult;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * @author :qinya
 * @PackageName:com.erp.remote.purchase
 * @ClassName: PurchasePreOrderRemote
 * @Description: TODO
 * @date : 2025/7/21,22:12
 */
@RequestMapping("/preOrder")
public interface PurchasePreOrderRemote {

    /**
     * 审核反审核购货订单
     *
     * @param
     * @return
     */
    @PostMapping("/editState")
    AjaxResult editPurchasePreOrderState(@RequestBody Map<String, Object> params);

    /**
     * 根据公司id查询购货订单数量
     *
     * @param companyId
     * @return
     */
    @GetMapping("/count")
    Integer selectPurchasePreOrderCount(@RequestParam("companyId") Integer companyId);
}
